<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Home extends CI_Controller
{

    protected $class_name;
    protected $dwt_list;
    protected $dwt_info;
    protected $myModel;
    protected $datas;

    function __construct()
    {
        parent::__construct();
        $this->class_name = strtolower(__CLASS__);

        $this->datas['full_page']   = true;
        $this->datas['page_title']  = "首页";
        $this->datas['my_position'] = $this->class_name;
        $this->datas['my_router']   = $this->class_name;

        $this_model = $this->class_name . '_model';
        $this->load->model($this_model);
        $this->myModel = $this->$this_model;
    }

    public function index()
    {
       /* if ($this->session->userdata('helper_type') == 2) {
            $this->datas['news_count'] = $this->myModel->get_news_count();
        } else {
            $this->datas['order_cnt'] = $this->myModel->get_order_count();

        }
        $this->datas['helper_list'] = $this->myModel->get_helper_list();*/
        $this->load->view('home', $this->datas);
    }
}
